﻿

using Company.Core.Enums;

namespace Company.Core.Interfaces
{
    /// <summary>
    /// 参数的操作接口
    /// </summary>
    public interface IConfigManager
    {
        /// <summary>
        /// 读取系统设置
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="configType"></param>
        /// <returns></returns>
        T Read<T>(ConfigType configType) where T : class;
        /// <summary>
        /// 保存系统设置
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="configType"></param>
        /// <param name="value"></param>
        bool Write<T>(ConfigType configType, T value);
    }
}
